Script: --on windowEvent wdID,wdName,objNo,objName,objValue┬┬if objValue="Open" then┬ global SSelection┬ if sselection = "true" then┬ wsSet wdID,"Value","Selection","0,100"┬ else┬ wsSet wdID,"Name","Selection","0,100"┬ end if┬else if objValue="Close" then ┬ ┬else if objValue="Suspend" then ┬ ┬else if objValue="Resume" then ┬ ┬else if objValue="CloseBox" then ┬ ┬else if objValue="ZoomBox" then ┬ ┬else if objValue="GrowBox" then ┬ ┬else if objValue="TitleBar" then ┬ ┬end if┬┬--end windowEvent
Params: i0_TopLeft┬i8_Text┬i4_Text┬i5_Text
Result: i4_Text┬i5_Value
ItemType: PUSH
Rect: 179,139,251,159
Name: OK
DefaultItem: TRUE
Script: get wsGet(wdID,"name","text")┬put it into namer┬get wsGet(wdID,"value","value")┬put it into vv┬put "y" into closeIt┬if (namer=empty) or (vv=empty) then┬ beep┬ alertNote("You forgot to either enter a name or a value.")┬ put "n" into closeIt┬else ┬ if checkQuality(namer,25)="fail" then┬ alertNote("Incorrect entry╤either too long or contains improper characters.")┬ wsSet wdID,"name","Text",""┬ put "n" into closeIt┬ end if┬end if┬if closeIt="y" then wsSend wdID,0,"Close"┬┬┬